package com.ma.auth.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ma.model.system.SysRole;
import com.ma.vo.system.AssginRoleVo;
import com.ma.vo.system.SysRoleQueryVo;

import java.util.Map;


public interface SysRoleService extends IService<SysRole> {
    //分页查询
    Page<SysRole> limit(Long page, Long limit, SysRoleQueryVo sysRoleQueryVo);
    //查询所有角色及用户所属角色
    Map<String,Object> findRoleDateByUserId(Long userId);
    //为用户分配角色
    void doAssign(AssginRoleVo assginRoleVo);
}
